import hashlib



def md5_fn(t:str, encoding="utf-8"):
    t_ext = t.rsplit(".")[-1]
    print(t_ext)

    m = hashlib.new("md5", bytes(t, encoding=encoding))
    
    return "{}.{}".format(m.hexdigest(), t_ext)